// import './App.css';
// import { BrowserRouter, Route, Routes,Router } from "react-router-dom"; //路由
import { BrowserRouter, Router } from 'react-router-dom';
import Routes from './router/index.js';
import Login from './pages/login.jsx';
import Index  from "./pages/index";
import VisitorList from "./pages/visitors/visitorList.jsx";
function App() {
  return (
    <>
      {/* <BrowserRouter>
        <Routes>
          <Route path='/' element={<Login />}></Route>

          <Route path='/Home' element={<Home />}>
            <Route path='VisitorList' element={<VisitorList />}></Route>
          </Route>
          
        </Routes>
      </BrowserRouter> */}

      <BrowserRouter>
        <Routes/>
      </BrowserRouter>

    </>
  );
}

export default App;
